package com.tourlaid.mamagerment.service

import com.tourlaid.mamagerment.dto.CommentDto
import com.tourlaid.mamagerment.dto.MyCommentDto
import com.tourlaid.mamagerment.entity.Comment

/**
 * Created by xiaoyongge on 2017/8/12.
 */
interface CommentService {

    fun queryOtherCByThoughtId(toUserId: Long, thoughtId: Long): List<CommentDto>

    fun queryWeCByThoughtId(fromUserId: Long, toUserId: Long, thoughtId: Long): List<Comment>

    fun publicComment(fromUserId: Long?, toUserId: Long?, thoughtId: Long?, content: String?)

    fun deleteComment(thoughtId: Long, ownUserId: Long, id: Long)

    fun getById(id: Long): Comment

    fun queryByThoughtId(thoughtId: Long): List<Comment>

    fun queryByFromUserId(fromUserId: Long): List<MyCommentDto>

    fun queryByToUserId(userId: Long): List<MyCommentDto>
}